gl: Add more debugging notes
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 5 Feb 2015 16:23:04 +0000 (16:23 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 9 Feb 2015 19:10:30 +0000 (19:10 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=741946

gdk/gdkglcontext.c

index 3ffaf8f8c230c3ccbcdcebda7e869b805af9607a..bb914f71af92e6904846e3edbb36c8298975a9ca 100644 (file)
@@ -631,6 +631,19 @@ gdk_gl_context_check_extensions (GdkGLContext *context)
   else
     g_warning ("GL implementation doesn't support any form of non-power-of-two textures");
 
+  GDK_NOTE (OPENGL,
+            g_print ("Extensions checked:\n"
+                     " - GL_ARB_texture_non_power_of_two: %s\n"
+                     " - GL_ARB_texture_rectangle: %s\n"
+                     " - GL_EXT_framebuffer_blit: %s\n"
+                     " - GL_GREMEDY_frame_terminator: %s\n"
+                     "Using texture rectangle: %s\n",
+                     has_npot ? "yes" : "no",
+                     has_texture_rectangle ? "yes" : "no",
+                     priv->has_gl_framebuffer_blit ? "yes" : "no",
+                     priv->has_frame_terminator ? "yes" : "no",
+                     priv->use_texture_rectangle ? "yes" : "no"));
+
   priv->extensions_checked = TRUE;
 }